﻿@using Ayatta.Contract.Domain
@helper GetHtml(Order order)
    {
        if (order.Status == OrderStatus.Pending || order.Status == OrderStatus.WaitBuyerPay)
        {
    <div class="flowstep">
        <ul class="list-unstyled flowstep-5">
            <li class="step-first">
                <div class="step-cur">
                    <div class="step-name">
                        买家下单</div>
                    <div class="step-no">
                        1
                    </div>
                    <div class="step-time">
                        <div class="step-time-wraper">
                            @(order.CreatedOn.ToString("yyyy-MM-dd HH:mm:ss"))</div>
                    </div>
                </div>
            </li>
            <li>
                <div class="step-name">
                    买家付款</div>
                <div class="step-no">
                    2</div>
                <div class="step-time">
                </div>
            </li>
            <li>
                <div class="step-name">
                    发货</div>
                <div class="step-no">
                    3</div>
            </li>
            <li>
                <div class="step-name">
                    买家确认收货</div>
                <div class="step-no">
                    4</div>
            </li>
            <li class="step-last">
                <div class="step-name">
                    评价</div>
                <div class="step-no">
                    5</div>
            </li>
        </ul>
    </div>
        }
        else if (order.Status == OrderStatus.WaitSellerSend)
        {
    <div class="flowstep">
        <ul class="list-unstyled  flowstep-5">
            <li class="step-first">
                <div class="step-done">
                    <div class="step-name">
                        买家下单</div>
                    <div class="step-no">
                    </div>
                    <div class="step-time">
                        <div class="step-time-wraper">
                            @(order.CreatedOn.ToString("yyyy-MM-dd HH:mm:ss"))</div>
                    </div>
                </div>
            </li>
            <li>
                <div class="step-cur">
                    <div class="step-name">
                        买家付款</div>
                    <div class="step-no">
                        2</div>
                    <div class="step-time">
                        <div class="step-time-wraper">
                            @(order.PaidOn.HasValue ? order.PaidOn.Value.ToString("yyyy-MM-dd HH:mm:ss") : string.Empty)</div>
                    </div>
                </div>
            </li>
            <li>
                <div class="step-name">
                    发货</div>
                <div class="step-no">
                    3</div>
            </li>
            <li>
                <div class="step-name">
                    买家确认收货</div>
                <div class="step-no">
                    4</div>
            </li>
            <li class="step-last">
                <div class="step-name">
                    评价</div>
                <div class="step-no">
                    5</div>
            </li>
        </ul>
    </div>
        }
        else if (order.Status == OrderStatus.SellerSendPart)
        {
    <div class="flowstep">
        <ul class="list-unstyled  flowstep-5">
            <li class="step-first">
                <div class="step-done">
                    <div class="step-name">
                        买家下单</div>
                    <div class="step-no">
                    </div>
                    <div class="step-time">
                        <div class="step-time-wraper">
                            @(order.CreatedOn.ToString("yyyy-MM-dd HH:mm:ss"))</div>
                    </div>
                </div>
            </li>
            <li>
                <div class="step-done">
                    <div class="step-name">
                        买家付款</div>
                    <div class="step-no">
                    </div>
                    <div class="step-time">
                        <div class="step-time-wraper">
                            @(order.PaidOn.HasValue ? order.PaidOn.Value.ToString("yyyy-MM-dd HH:mm:ss") : string.Empty)</div>
                    </div>
                </div>
            </li>
            <li>
                <div class="step-cur">
                    <div class="step-name">
                        部分发货</div>
                    <div class="step-no">
                        3
                    </div>
                    <div class="step-time">
                        <div class="step-time-wraper">
                            @(order.ConsignOn.HasValue ? order.ConsignOn.Value.ToString("yyyy-MM-dd HH:mm:ss") : string.Empty)</div>
                    </div>
                </div>
            </li>
            <li>
                <div class="step-name">
                    买家确认收货</div>
                <div class="step-no">
                    4</div>
            </li>
            <li class="step-last">
                <div class="step-name">
                    评价</div>
                <div class="step-no">
                    5</div>
            </li>
        </ul>
    </div>
        }
        else if (order.Status == OrderStatus.WaitBuyerConfirm)
        {
    <div class="flowstep">
        <ul class="list-unstyled  flowstep-5">
            <li class="step-first">
                <div class="step-done">
                    <div class="step-name">
                        买家下单</div>
                    <div class="step-no">
                    </div>
                    <div class="step-time">
                        <div class="step-time-wraper">
                            @(order.CreatedOn.ToString("yyyy-MM-dd HH:mm:ss"))</div>
                    </div>
                </div>
            </li>
            <li>
                <div class="step-done">
                    <div class="step-name">
                        买家付款</div>
                    <div class="step-no">
                    </div>
                    <div class="step-time">
                        <div class="step-time-wraper">
                            @(order.PaidOn.HasValue ? order.PaidOn.Value.ToString("yyyy-MM-dd HH:mm:ss") : string.Empty)</div>
                    </div>
                </div>
            </li>
            <li>
                <div class="step-cur">
                    <div class="step-name">
                        发货</div>
                    <div class="step-no">
                        3
                    </div>
                    <div class="step-time">
                        <div class="step-time-wraper">
                            @(order.ConsignOn.HasValue ? order.ConsignOn.Value.ToString("yyyy-MM-dd HH:mm:ss") : string.Empty)</div>
                    </div>
                </div>
            </li>
            <li>
                <div class="step-name">
                    买家确认收货</div>
                <div class="step-no">
                    4</div>
            </li>
            <li class="step-last">
                <div class="step-name">
                    评价</div>
                <div class="step-no">
                    5</div>
            </li>
        </ul>
    </div>
        }
        else if (order.Status == OrderStatus.Finished)
        {
    <div class="flowstep">
        <ul class="list-unstyled  flowstep-5">
            <li class="step-first">
                <div class="step-done">
                    <div class="step-name">
                        买家下单</div>
                    <div class="step-no">
                    </div>
                    <div class="step-time">
                        <div class="step-time-wraper">
                            @(order.CreatedOn.ToString("yyyy-MM-dd HH:mm:ss"))</div>
                    </div>
                </div>
            </li>
            <li>
                <div class="step-done">
                    <div class="step-name">
                        买家付款</div>
                    <div class="step-no">
                    </div>
                    <div class="step-time">
                        <div class="step-time-wraper">
                            @(order.PaidOn.HasValue ? order.PaidOn.Value.ToString("yyyy-MM-dd HH:mm:ss") : string.Empty)</div>
                    </div>
                </div>
            </li>
            <li>
                <div class="step-done">
                    <div class="step-name">
                        发货</div>
                    <div class="step-no">
                    </div>
                    <div class="step-time">
                        <div class="step-time-wraper">
                            @(order.ConsignOn.HasValue ? order.ConsignOn.Value.ToString("yyyy-MM-dd HH:mm:ss") : string.Empty)</div>
                    </div>
                </div>
            </li>
            <li>
                <div class="step-cur">
                    <div class="step-name">
                        买家确认收货</div>
                    <div class="step-no">
                        4
                    </div>
                </div>
            </li>
            <li class="step-last">
                <div class="step-name">
                    评价</div>
                <div class="step-no">
                    5</div>
            </li>
        </ul>
    </div>
        }
}
